package com.zbystudy;

import java.util.Collection;
import java.util.Set;

/**
 * Created By zby on 23:41 2019/1/9
 * 模拟Map创建该项目需要的键值对
 */
public interface PoiMap<K, V> {

    int size();


    boolean isEmpty();


    boolean containsKey(Object key);


    boolean containsValue(Object value);


    V get(Object key);

    PoiMap put(K key, V value);


    V remove(Object key);


    PoiMap putAll(PoiMap<K, V> m);


    PoiMap clear();


    Set<K> keySet();


    Collection<V> values();


    Set<Entry<K, V>> entrySet();


    interface Entry<K, V> {

        K getKey();

        V getValue();

    }

}
